
	<div class="login-container">
		<div class="login-header">
			<a href="/" title="妈咪街-登陆页面"><img src="<?php echo yii::app()->theme->baseUrl;  ?>/assets/images/index_logo.png" alt="妈咪街"></a>
		</div>
		<div class="login-info clearfix">
				<?php 
				 $m = AdvertisingModel::getListType(4);

				 ?>
				<img src="<?php echo ConfigModel::model()->getConfig('sitefileurl').$m[0]->Image ?>" alt="妈咪街" class="login-img"></a>
			<div class="login-detail clearfix">
<!-- 				<div class="clearfix">
					<div class="login-forPC">普通登录</div>
					<div class="login-forPh">手机无密码登录</div>
					
				</div> -->
				<div class="login-content">
					<form id="form" action="" method="post">
						<div class="login-account">
							<input type="text" name="UserName" class="login-acc" placeholder="用户名">
						</div>
						<div class="login-pw">
							<input type="password" name="Password" class="login-acc" placeholder="密码">
						</div>
						<div class="login-code">
							<label for="">验证码:</label>
							<input name="verifyCode" type="text">
							<?php $this->widget('CCaptcha',array('showRefreshButton'=>true,'clickableImage'=>true,'buttonLabel'=>'看不清'));  ?>
						</div>					
						<div class="login-remember">
							<input type="checkbox">
							<span>记住我(两周免登录)</span>
							<img src="" alt="">
						</div>
						<div class="login-submit">
							<input type="submit" name="">
							<!-- <a href="" title="妈咪街账号登录">忘记密码？</a> -->
							<a href="<?php echo $this->createUrl('buyersRegister') ?>" title="妈咪街账号登录">新用户注册</a>
						</div>
					</form>
<!-- 					<div class="login-method">
						<p>你也可以用一下方式登录：</p>
						<a href="" title="妈咪街账号登录"><img src="" alt=""></a>
						<a href="" title="妈咪街账号登录"><img src="" alt=""></a>
						<a href="" title="妈咪街账号登录"><img src="" alt=""></a>
						<a href="" title="妈咪街账号登录"><img src="" alt=""></a>
						<a href="" title="妈咪街账号登录"><img src="" alt=""></a>
					</div> -->
				</div>
			</div>
		</div>
	</div>

<script src="<?php echo yii::app()->theme->baseUrl;  ?>/assets/statics/js/ajaxForm.js"></script> 
<link rel="stylesheet" href="<?php echo yii::app()->theme->baseUrl;  ?>/assets/statics/js/artDialog6/css/ui-dialog.css">
<script src="<?php echo yii::app()->theme->baseUrl;  ?>/assets/statics/js/artDialog6/js/dialog-min.js"></script> 


<script type="text/javascript">
	var LOCK = false;



	$(function(){

		$('#form').ajaxForm({
			dataType:'json',		
			beforeSubmit:function(data, obj, es){
				tips = dialog({
					//fixed: true,
					//cancelDisplay: false
				});					
				if(LOCK){
					tips.title('还有正在提交的');
					tips.showModal();
					return false;
				}else{
					LOCK = true;
					tips.title('正在提交');
					tips.show();
				}			
			},
			success:function(data){
				LOCK = false;
				if(data.status){
					tips.title('提交成功');
					if(data.url){
						window.location.href = data.url;					
					}
				}else{
					tips.title('提交失败');
					tips.content(data.info);
				}
			}
		});

	})
</script>

